import Vue from 'vue'
import {
  Button,
  Dialog,
  Input,
  Form,
  FormItem,
  Upload,
  Image,
  Popover,
  Dropdown,
  DropdownMenu,
  DropdownItem,
  Alert,
  Menu,
  MenuItem
} from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

// 设置语言为中文
import locale from 'element-ui/lib/locale/lang/zh-CN'
import ElementUI from 'element-ui'
Vue.use(ElementUI, { locale })

// 按需引入组件
Vue.use(Button)
Vue.use(Dialog)
Vue.use(Input)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Upload)
Vue.use(Image)
Vue.use(Popover)
Vue.use(Dropdown)
Vue.use(DropdownMenu)
Vue.use(DropdownItem)
Vue.use(Menu)
Vue.use(MenuItem)
Vue.use(Alert) 